home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / mac / ch17 / 17fig10c.wrl < prev    next >
Text File  |  1996-09-23  |  787b  |  44 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Ground
  8.         Shape {
  9.             appearance Appearance {
  10.                 material Material { }
  11.             }
  12.             geometry IndexedFaceSet {
  13.                 coord Coordinate {
  14.                     point [
  15.                         -5.0 0.0  5.0,  5.0 0.0  5.0,
  16.                          5.0 0.0 -5.0, -5.0 0.0 -5.0,
  17.                     ]
  18.                 }
  19.                 coordIndex [ 0, 1, 2, 3 ]
  20.                 solid FALSE
  21.             }
  22.         },
  23.     # Tree face
  24.         Shape {
  25.             appearance Appearance {
  26.                 # No material, use emissive texturing
  27.                 texture ImageTexture {
  28.                     url "tree1.png"
  29.                 }
  30.             }
  31.             geometry IndexedFaceSet {
  32.                 coord Coordinate {
  33.                     point [
  34.                         -1.51 0.0 0.0,   1.51 0.0 0.0,
  35.                          1.51 3.0 0.0,  -1.51 3.0 0.0,
  36.                     ]
  37.                 }
  38.                 coordIndex [ 0, 1, 2, 3 ]
  39.                 solid FALSE
  40.             }
  41.         }
  42.     ]
  43. }
  44.